library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.numeric_std.all;


entity oneBitFA is
port( A 	  : in  std_logic;
		B 	  : in  std_logic;
		S 	  : out std_logic;
		G 	  : out std_logic;
		P 	  : out std_logic;
		C_in : in  std_logic
);
end oneBitFA;

architecture Behavioral of oneBitFA is

begin

       S <= A xor B xor C_in;
       G <= A and B;
       P <= A xor B;

end Behavioral;
